#! /bin/bash

>ip.txt
for num in `seq 110`
do
	{
	ip=192.168.1.$num
	ping -c1 -W1 $ip &>/dev/null
	if [ $? -eq 0 ];then
		echo "$ip"|tee -a ip.txt
	fi
	}&
done
wait
echo "finishi..."
